package com.heima.model.wemedia.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 自媒体用户信息表
 * </p>
 *
 * @author itheima
 */
@Data
@TableName("wm_user")
public class WmUser implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("ap_user_id")
    private Integer apUserId;

    @TableField("ap_author_id")
    private Integer apAuthorId;

    @TableField("name")
    private String name;

    @TableField("password")
    private String password;

    @TableField("salt")
    private String salt;

    @TableField("nickname")
    private String nickname;//昵称

    @TableField("image")
    private String image;

    @TableField("location")
    private String location;

    @TableField("phone")
    private String phone;

    /**
     * 0：暂时不可用
     * 1：永久不可用
     * 2；正常可用
     */
    @TableField("status")
    private Integer status;

    @TableField("email")
    private String email;

    /**
     * 0：个人
     * 1：企业
     * 2：子账号
     */
    @TableField("type")
    private Integer type;

    @TableField("score")
    private Integer score;

    @TableField("login_time")
    private Date loginTime;

    @TableField("created_time")
    private Date createdTime;
}